package cn.ecut.model;

import java.sql.Timestamp;

public class Apply {
    private int applyid;
    private Timestamp applytime;
    private String applyexplain;
    private String applystate;
    private String applypicture;
    //    private int applygoodid;
    private Good good;
//    private int applyuserid;
//    private String applycontact;
    private User user;

    @Override
    public String toString() {
        return "Apply{" +
                "applyid=" + applyid +
                ", applytime=" + applytime +
                ", applyexplain='" + applyexplain + '\'' +
                ", applystate='" + applystate + '\'' +
                ", applypicture='" + applypicture + '\'' +
                ", applygoodid=" + good.getGoodid() +
                ", applyuserid=" + user.getUserid() +
                ", applycontact=" + user.getUserphone() +
                '}';
    }

    public int getApplyid() {
        return applyid;
    }

    public void setApplyid(int applyid) {
        this.applyid = applyid;
    }

    public Timestamp getApplytime() {
        return applytime;
    }

    public void setApplytime(Timestamp applytime) {
        this.applytime = applytime;
    }

    public String getApplyexplain() {
        return applyexplain;
    }

    public void setApplyexplain(String applyexplain) {
        this.applyexplain = applyexplain;
    }

    public String getApplystate() {
        return applystate;
    }

    public void setApplystate(String applystate) {
        this.applystate = applystate;
    }

    public String getApplypicture() {
        return applypicture;
    }

    public void setApplypicture(String applypicture) {
        this.applypicture = applypicture;
    }

    public Good getGood() {
        return good;
    }

    public void setGood(Good good) {
        this.good = good;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
